var mongoose = require('mongoose');
var mongoosePaginate = require('mongoose-paginate');

var schema = new mongoose.Schema({
    //menuid:String, 
    fieldname:String,
    originalname:String,
    encoding: String,
    mimetype: String,
    destination: String,
    filename: String,
    path: String,
    size: String ,
    date:{ type: Date, default: Date.now },
    type:String,
    cateType:String,
    userId:String
});


schema.plugin(mongoosePaginate);

var unload = mongoose.model('Upload',  schema,'upload');
module.exports=unload;